package com.firemoss.atonement.frameworks.magicbus
{
	import com.firemoss.magicbus.messaging.fillter.BeforeFilter;
	import com.firemoss.magicbus.messaging.fillter.ResponseFilter;
	
	import mx.rpc.events.ResultEvent;
	
	public class MappingAssemblerFilter extends MappingAssembler implements BeforeFilter, ResponseFilter
	{
		public function before(parameters:Array):Array
		{
			return disassemble( parameters )
		}
		
		public function response( result : * ) : *
		{
			var res : * = assemble( result )
				
			return res;
		}
	}
}